<!DOCTYPE html>
<html>

<head>
	<title>第五课 v-on</title>
</head>
<body>
	<div id="app">
	<!-- v-on   v-on:变成简写@ 绑定事件-->
	<!-- 切记 要把方在data法放在外面-->
	<!-- <button v-on:click="onClick">点我</button> -->
  <!--   <button v-on="{mouseenter: onEnter, mouseleave: onOut}" v-on:click="onClick">点我</button> -->
  	<!-- <form v-on:submit.stop="onSubmit"> //停止冒泡-->
	<!-- <form v-on:keyup="onKeyup" v-on:submit.prevent="onSubmit"> onKeyup键盘事件-->
	<form @keyup.enter="onEnter" @submit.prevent="onSubmit">
	<input type="text">
	<button type="submit"> 提交</button>
	</form>
	</div>
<script src="vue-2.4.0.js"></script>
<script src="js.js"></script>
</body>
</html>